package com.flyweb.result.type;

import java.io.IOException;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.flyweb.result.type.BaseResult;
import com.flyweb.result.type.IResult;

/**
 * <p>
 * Title: flyweb
 * </p>
 * 
 * <p>
 * Description:
 * </p>
 * 
 * <p>
 * CreateTime: 2007-Oct 21, 2007-1:43:49 PM
 * </p>
 * 
 * @author fireflyc@126.com
 */
public class Redirect extends BaseResult {

	@Override
	public void execute(HttpServletRequest request,
			HttpServletResponse response, ServletContext context) {
		try {
			response.sendRedirect(this.getValue());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
